<center>
<div style="margin:20px">搜索到<font style="color:#AE0208"><?php echo(mfa($count)[0]) ?></font>个帐号</div>
<table width="100%" style="background-color:white">
<?php 
while ($item=mfa($data)) {
	if(isset($item[好友数量])){
	}elseif (isset($item[好友数])) {
		$item[好友数量]=$item[好友数];
	}elseif(isset($item[群粉丝])){
		$item[好友数量]=$item[群粉丝];
	}
	$tx=($item[头像]?$item[头像]:'v/m/images/ad_chk_tx.png');
	echo("<tr>
		<td width=\"20%\" style=\"padding:20px\"><img src=\"$tx\" width=\"120px\" height=\"120px\"></td>
		<td width=\"60%\" style=\"padding:20px\">
		<img src=\"v/m/images/ad_chk_1.png\" width=\"20px\" height=\"20px\">$item[昵称] <font style='font-size:16px'>$item[省] $item[市]</font>
		<br>
		$item[个人标签]
		<br>
		$item[自我介绍]
		</td>
		<td width=\"20%\" align=\"center\" style=\"padding:20px\">
		<font style=\"color:white;background-color:#AE0208;padding:3 10 3 10px;border-radius:5px\">$item[好友数量]</font>
		<br>
		<input type=\"button\" name=\"\" value=\"查看详情\" style=\"color:black;margin:10px\" onclick=\"location.href='?_c=ad&_f={$type}index&_openid=$item[openid]'\">
		</td>
	</tr>");
}
?>
</table>
<br>
<input type="button" name="" value="最新" style="background-color:#0E89B7;color:white;width:200px;padding:15 0 15 0px">
<input type="button" name="" value="最热" style="background-color:#0E89B7;color:white;width:200px;padding:15 0 15 0px">
<input type="button" name="" value="我要上传" style="background-color:#0E89B7;color:white;width:200px;padding:15 0 15 0px" 
onclick="location.href='<?php switch ($type) {
	case 'person':
		echo('?_c=ad&_f=persondetail');
		break;
	
	case 'public':
		echo('?_c=ad&_f=publicdetail');
		break;

	case 'group':
		echo('?_c=ad&_f=groupdetail');
		break;
} ?>'">
</center>